/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'
/**  */
const supplyRouter = {
  path: '/supply',
  component: Layout,
  redirect: 'noRedirect',
  hidden:false,
  name: '供应链',
  meta: {
    title: '供应链',
    
    icon: 'guide',
  },
  children: [
    {
      path: 'workbrench',
      component: () => import('@/views/supply/workbrench/workbrench'),
      name: '总览',
      meta: { title: '总览' }
    },
    {
      path: 'supplier',
      component: () => import('@/views/supply/index'),
      name: '商家',
      meta: { title: '商家' },
      children:[
        {
          path: 'catalogue',
          component: () => import('@/views/supply/supplier/catalogue/catalogue'),
          name: '目录',
          meta: { title: '目录' }
        },
        {
          path: 'catalogue-add',
          component: () => import('@/views/supply/supplier/catalogue/catalogue-add'),
          name: '新目录',
          hidden: true,
          meta: {
            title: '新目录'
          }
        },
        {
          path: 'business',
          component: () => import('@/views/supply/supplier/business/business'),
          name: '商家',
          meta: { title: '商家' }
        },
        {
          path: 'business-add',
          component: () => import('@/views/supply/supplier/business/business-add'),
          name: '新商家',
          hidden: true,
          meta: {
            title: '新商家'
          }
        },
        {
          path: 'business-detail',
          component: () => import('@/views/supply/supplier/business/business-add'),
          name: '商家档案',
          hidden: true,
          meta: {
            title: '商家档案'
          }
        },
        {
          path: 'shop',
          component: () => import('@/views/supply/supplier/shop/shop'),
          name: '店铺',
          meta: { title: '店铺' }
        },
        {
          path: 'shop-add',
          component: () => import('@/views/supply/supplier/shop/shop-add'),
          name: '新店铺',
          hidden: true,
          meta: {
            title: '新店铺'
          }
        },
        {
          path: 'shop-detail',
          component: () => import('@/views/supply/supplier/shop/shop-add'),
          name: '店铺档案',
          hidden: true,
          meta: {
            title: '店铺档案'
          }
        },
      ]
    },
    {
      path: 'production',
      component: () => import('@/views/supply/index'),
      name: '产品',
      meta: { title: '产品' },
      children:[
        {
          path: 'catalogue',
          component: () => import('@/views/supply/catalogue/catalogue'),
          name: '目录',
          meta: { title: '目录' }
        },
        {
          path: 'catalogue-add',
          component: () => import('@/views/supply/catalogue/catalogue-add'),
          name: '新目录',
          hidden: true,
          meta: {
            title: '新目录'
          }
        },
        {
          path: 'product',
          component: () => import('@/views/supply/product/product'),
          name: '产品',
          meta: { title: '产品' }
        },
        {
          path: 'product-add',
          component: () => import('@/views/supply/product/product-add'),
          name: '新产品',
          hidden: true,
          meta: {
            title: '新产品'
          }
        },
        {
          path: 'chamber',
          component: () => import('@/views/supply/product/product'),
          name: '包房',
          meta: { title: '包房' }
        },
        {
          path: 'chamber-add',
          component: () => import('@/views/supply/product/product-add'),
          name: '新包房',
          hidden: true,
          meta: {
            title: '新包房'
          }
        },
      ]
    },
    {
      path: 'inventory',
      component: () => import('@/views/supply/index'),
      name: '库存',
      meta: { title: '库存' },
      children:[
        {
          path: 'inventory',
          component: () => import('@/views/supply/warehousing/warehousing'),
          name: '入库',
          meta: { title: '入库' }
        },
        {
          path: 'warehousing',
          component: () => import('@/views/supply/warehousing/warehousing'),
          name: '入库',
          meta: { title: '入库' }
        },
        {
          path: 'warehousing-add',
          component: () => import('@/views/supply/warehousing/warehousing-add'),
          name: '新入库',
          hidden: true,
          meta: {
            title: '新入库'
          }
        },
        {
          path: 'delivery',
          component: () => import('@/views/supply/delivery/delivery'),
          name: '出库',
          meta: { title: '出库' }
        },
        {
          path: 'delivery-add',
          component: () => import('@/views/supply/delivery/delivery-add'),
          name: '新库存',
          hidden: true,
          meta: {
            title: '新库存'
          }
        }

      ]
    },
    {
      path: 'setting',
      component: () => import('@/views/supply/index'),
      name: '配置',
      meta: { title: '配置' },
      children:[
        {
          path: 'brand',
          component: () => import('@/views/supply/brand/brand'),
          name: '品牌',
          meta: { title: '品牌' }
        },
        {
          path: 'brand-add',
          component: () => import('@/views/supply/brand/brand-add'),
          name: '新品牌',
          hidden: true,
          meta: {
            title: '新品牌'
          }
        },
        {
          path: 'specifications',
          component: () => import('@/views/supply/specifications/specifications'),
          name: '规格',
          meta: { title: '规格' }
        },
        {
          path: 'guige-add',
          component: () => import('@/views/supply/specifications/specifications-add'),
          name: '新规格',
          hidden: true,
          meta: {
            title: '新规格'
          }
        }

      ]
    }
  ]
}

export default supplyRouter
